#ifndef _AL_YUN_H_
#define _AL_YUN_H_

#include "main.h"
#include "cJSON.h"

#define ALI_USERNAME ""   // 用户名
#define ALICLIENTLD "123" // ID

#define ALI_PASSWD "" // MQTT 密码

#define ALI_MQTT_HOSTURL "192.168.40.13" // ip

#define ALI_PORT "1884" // 端口

#define ALI_TOPIC_SET "set"

#define ALI_TOPIC_POST "post"

uint8_t Mosquitto_Init(void);

void Mosquitto_Topic(void);

int Mosquitto_Publish(const char *topic, const char *message, int qos);

#define Publish(data) Mosquitto_Publish("post", data, 1)
void Mosquitto_GetRCV(void);

#endif
